home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11301 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 KB

  1. Path: wilma.cnmw.com!news
  2. From: Paul Gibby <pgibby@cnmw.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: I need help please
  5. Date: Wed, 13 Mar 1996 15:20:12 -0800
  6. Organization: Cincinnati Microwave Inc
  7. Message-ID: <3147582C.6BEF@cnmw.com>
  8. References: <4i5hie$c51@cloner3.netcom.com>
  9. NNTP-Posting-Host: deadcow.is.cnmw.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. leonel wizel wrote:
  16. >     I am new to the c++ programming language.  I need some help from
  17. > some of you that are already gurus in this programming language please.
  18. >     I need to write three programs and I don't have any idea how to
  19. > start.
  20. >     the programs are:
  21. >     write a program using palindrome strings:
  22. > (1)
  23. >     I have to write a recursive function TESTPALINDROME that returns
  24. > "1" if the string stored in the array is palindrome, and "0" otherwise.
  25. >     I need some hints please.
  26. > program No. (2)
  27. >     write a C++ program that inputs a numeric check amount and writes
  28. > the word equivalent of the amount.  For example, the amount 112.43
  29. > should be written as
  30. >     ONE HUNDRED TWELVE AND 43/100
  31. > program No. (3)
  32. >     write a c++ program that creates a class called RATIONAL for
  33. > performing arithmetic with fractions.  I have to write a driver to test
  34. > my classes.
  35. >     I have to provide a constructor function that enables an object of
  36. > this class to be initialized when it is declared.  The constructor
  37. > should contain default values in case no initializers are provided and
  38. > should store the fraction in reduced form (i.e., the fraction)
  39. >     2/4
  40. >     should be stored in the object as 1 in the numerator and 2 in the
  41. > denominator).  provide public members functions for each of the
  42. > following.
  43. >     addition, substraction, multiplication, division of two rational
  44. > numbers.  result should be stored in reduced form.
  45. >     and then.
  46. >     printing rational numbers in the form a/b where a is the numerator
  47. > and b is the denominator.\
  48. >     printing rational numbers in floating point format.
  49. >     Please I need some help with these three programs.  I do not know
  50. > how to start.  I need some hints please.
  51. > thank you for your cooperation
  52. > Try asking one of your classmates. Good luck!
  53. --Paul
  54.